package com.dongly;

import com.dongly.Insertion.InsertSort;
import com.dongly.selection.SortComparableTest;
import com.sun.org.apache.xpath.internal.SourceTree;

import java.util.Arrays;

/**
 * 选择排序
 *
 * @auther DLY
 * @create 2017/9/16
 */
public class SortTest {

    public static void main(String[] args) {
        // 15591
        Integer[] array = SortTestHelper.generateRandomArray(10000, 10000, 100000);

        Integer[] newArray = Arrays.copyOf(array, array.length);
        SortTestHelper.testSort(new SortComparableTest(), array);
        SortTestHelper.testSort(new InsertSort(), newArray);

        // 25732

    }

}
